package com.zmn.oms.services.interfaces.entrust;

import com.zmn.oms.model.entity.entrust.EntrustOrderQuery;
import com.zmn.oms.model.entity.entrust.EntrustOrder;

import java.util.List;

/**
 * 类描述：委托单
 *
 * @author lhl
 * @date 2020/01/02 16:34
 */
public interface EntrustOrderService {
    /**
     * ID查找
     * @param entrustOrderId
     * @return
     */
    EntrustOrder findByKey(Long entrustOrderId);

    /**
     * ID修改
     * @param entrustOrder
     * @return
     */
    int updateByKey(EntrustOrder entrustOrder);

    /**
     * 插入
     * @param entrustOrder
     * @return
     */
    int insertEntrustOrder(EntrustOrder entrustOrder);

    /**
     * 列表查找
     * @param query
     * @return
     */
    List<EntrustOrder> listOrders(EntrustOrderQuery query);
}
